﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LexicalAnalysisCs;

namespace TextDiffAlgoCs
{
    class Program
    {
        static void Main(string[] args)
        {
//             string before = "awwwwwwwsdqwe";
// 	        string after = "asdfffff";
// 
//             /*             111
// 	         0123456789     012
// 	         awwwwwwwsd     qwe
// 	         0       1234567
// 	         a       sdfffff
// 	         */
// 
//             CompareResult cr = new CompareResult();
//             cr.GetCompareRes(before, after);

            List<LexicalAnalyzerCs.StrInt> src = new List<LexicalAnalyzerCs.StrInt>();
            List<LexicalAnalyzerCs.StrInt> cmp = new List<LexicalAnalyzerCs.StrInt>();

            src.Add(new LexicalAnalyzerCs.StrInt("ABC", 3));
            src.Add(new LexicalAnalyzerCs.StrInt("ADEasdqwe", 2));
            src.Add(new LexicalAnalyzerCs.StrInt("123", 4));
            src.Add(new LexicalAnalyzerCs.StrInt("^_^", 6));
            src.Add(new LexicalAnalyzerCs.StrInt("-,-", 9));
            src.Add(new LexicalAnalyzerCs.StrInt("ytrYTU", 11));

            cmp.Add(new LexicalAnalyzerCs.StrInt("ABC", 3));
            cmp.Add(new LexicalAnalyzerCs.StrInt("123", 4));
            cmp.Add(new LexicalAnalyzerCs.StrInt("^!^", 6));
            cmp.Add(new LexicalAnalyzerCs.StrInt("-,-", 9));
            cmp.Add(new LexicalAnalyzerCs.StrInt("ytrdYTU", 11));

            List<TextDiff> res = ListComparer.Compare(src, cmp);
            foreach (var t in res)
            {
                Console.WriteLine(t);
            }

            Console.ReadLine();
        }
    }
}
